Optimal. Leaf size=83 \[ \frac{b \left (3 a^2-3 a b+b^2\right ) \cosh (c+d x)}{d}-\frac{a^3 \tanh ^{-1}(\cosh (c+d x))}{d}+\frac{b^2 (3 a-2 b) \cosh ^3(c+d x)}{3 d}+\frac{b^3 \cosh ^5(c+d x)}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0869544, antiderivative size = 83, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3186, 390, 206} \[ \frac{b \left (3 a^2-3 a b+b^2\right ) \cosh (c+d x)}{d}-\frac{a^3 \tanh ^{-1}(\cosh (c+d x))}{d}+\frac{b^2 (3 a-2 b) \cosh ^3(c+d x)}{3 d}+\frac{b^3 \cosh ^5(c+d x)}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3186
Rule 390
Rule 206
Rubi steps
\begin{align*} \int \text{csch}(c+d x) \left (a+b \sinh ^2(c+d x)\right )^3 \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{\left (a-b+b x^2\right )^3}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac{\operatorname{Subst}\left (\int \left (-b \left (3 a^2-3 a b+b^2\right )-(3 a-2 b) b^2 x^2-b^3 x^4+\frac{a^3}{1-x^2}\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac{b \left (3 a^2-3 a b+b^2\right ) \cosh (c+d x)}{d}+\frac{(3 a-2 b) b^2 \cosh ^3(c+d x)}{3 d}+\frac{b^3 \cosh ^5(c+d x)}{5 d}-\frac{a^3 \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac{a^3 \tanh ^{-1}(\cosh (c+d x))}{d}+\frac{b \left (3 a^2-3 a b+b^2\right ) \cosh (c+d x)}{d}+\frac{(3 a-2 b) b^2 \cosh ^3(c+d x)}{3 d}+\frac{b^3 \cosh ^5(c+d x)}{5 d}\\ \end{align*}
Mathematica [A] time = 0.214731, size = 83, normalized size = 1. \[ \frac{30 b \left (24 a^2-18 a b+5 b^2\right ) \cosh (c+d x)+3 \left (80 a^3 \log \left (\tanh \left (\frac{1}{2} (c+d x)\right )\right )+b^3 \cosh (5 (c+d x))\right )+5 b^2 (12 a-5 b) \cosh (3 (c+d x))}{240 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.03, size = 86, normalized size = 1. \begin{align*}{\frac{1}{d} \left ( -2\,{a}^{3}{\it Artanh} \left ({{\rm e}^{dx+c}} \right ) +3\,{a}^{2}b\cosh \left ( dx+c \right ) +3\,a{b}^{2} \left ( -2/3+1/3\, \left ( \sinh \left ( dx+c \right ) \right ) ^{2} \right ) \cosh \left ( dx+c \right ) +{b}^{3} \left ({\frac{8}{15}}+{\frac{ \left ( \sinh \left ( dx+c \right ) \right ) ^{4}}{5}}-{\frac{4\, \left ( \sinh \left ( dx+c \right ) \right ) ^{2}}{15}} \right ) \cosh \left ( dx+c \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.06502, size = 261, normalized size = 3.14 \begin{align*} \frac{1}{480} \, b^{3}{\left (\frac{3 \, e^{\left (5 \, d x + 5 \, c\right )}}{d} - \frac{25 \, e^{\left (3 \, d x + 3 \, c\right )}}{d} + \frac{150 \, e^{\left (d x + c\right )}}{d} + \frac{150 \, e^{\left (-d x - c\right )}}{d} - \frac{25 \, e^{\left (-3 \, d x - 3 \, c\right )}}{d} + \frac{3 \, e^{\left (-5 \, d x - 5 \, c\right )}}{d}\right )} + \frac{1}{8} \, a b^{2}{\left (\frac{e^{\left (3 \, d x + 3 \, c\right )}}{d} - \frac{9 \, e^{\left (d x + c\right )}}{d} - \frac{9 \, e^{\left (-d x - c\right )}}{d} + \frac{e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} + \frac{3}{2} \, a^{2} b{\left (\frac{e^{\left (d x + c\right )}}{d} + \frac{e^{\left (-d x - c\right )}}{d}\right )} + \frac{a^{3} \log \left (\tanh \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.06531, size = 2889, normalized size = 34.81 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.32194, size = 311, normalized size = 3.75 \begin{align*} -\frac{a^{3} \log \left (e^{\left (d x + c\right )} + 1\right )}{d} + \frac{a^{3} \log \left ({\left | e^{\left (d x + c\right )} - 1 \right |}\right )}{d} + \frac{{\left (720 \, a^{2} b e^{\left (4 \, d x + 4 \, c\right )} - 540 \, a b^{2} e^{\left (4 \, d x + 4 \, c\right )} + 150 \, b^{3} e^{\left (4 \, d x + 4 \, c\right )} + 60 \, a b^{2} e^{\left (2 \, d x + 2 \, c\right )} - 25 \, b^{3} e^{\left (2 \, d x + 2 \, c\right )} + 3 \, b^{3}\right )} e^{\left (-5 \, d x - 5 \, c\right )}}{480 \, d} + \frac{3 \, b^{3} d^{4} e^{\left (5 \, d x + 5 \, c\right )} + 60 \, a b^{2} d^{4} e^{\left (3 \, d x + 3 \, c\right )} - 25 \, b^{3} d^{4} e^{\left (3 \, d x + 3 \, c\right )} + 720 \, a^{2} b d^{4} e^{\left (d x + c\right )} - 540 \, a b^{2} d^{4} e^{\left (d x + c\right )} + 150 \, b^{3} d^{4} e^{\left (d x + c\right )}}{480 \, d^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]